package com.ruoyi.sys.vehile.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 临停缴费对象 tb_temporary_payment
 *
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbTemporaryPayment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 临时缴费编号 */
    private Long tpId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String tpOrderid;

    /** 车牌号码（可从停车场编号获取） */
    @Excel(name = "车牌号码", readConverterExp = "可=从停车场编号获取")
    private String tpNum;

    /** 进场时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进场时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tpStartdate;

    /** 停车时长（进场时间-订单日期） */
    @Excel(name = "停车时长", readConverterExp = "进=场时间-订单日期")
    private String tpTime;

    /** 停车费用 */
    @Excel(name = "停车费用")
    private BigDecimal tpCost;

    /** 实付费用(有折扣则显示折扣金额) */
    @Excel(name = "实付费用(有折扣则显示折扣金额)")
    private BigDecimal tpActualcost;

    /**  订单日期
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " 订单日期 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tpDate;

    /** 停车场编号 */
    @Excel(name = "停车场编号")
    private Long pId;

    public void setTpId(Long tpId)
    {
        this.tpId = tpId;
    }

    public Long getTpId()
    {
        return tpId;
    }
    public void setTpOrderid(String tpOrderid)
    {
        this.tpOrderid = tpOrderid;
    }

    public String getTpOrderid()
    {
        return tpOrderid;
    }
    public void setTpNum(String tpNum)
    {
        this.tpNum = tpNum;
    }

    public String getTpNum()
    {
        return tpNum;
    }
    public void setTpStartdate(Date tpStartdate)
    {
        this.tpStartdate = tpStartdate;
    }

    public Date getTpStartdate()
    {
        return tpStartdate;
    }
    public void setTpTime(String tpTime)
    {
        this.tpTime = tpTime;
    }

    public String getTpTime()
    {
        return tpTime;
    }
    public void setTpCost(BigDecimal tpCost)
    {
        this.tpCost = tpCost;
    }

    public BigDecimal getTpCost()
    {
        return tpCost;
    }
    public void setTpActualcost(BigDecimal tpActualcost)
    {
        this.tpActualcost = tpActualcost;
    }

    public BigDecimal getTpActualcost()
    {
        return tpActualcost;
    }
    public void setTpDate(Date tpDate)
    {
        this.tpDate = tpDate;
    }

    public Date getTpDate()
    {
        return tpDate;
    }
    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tpId", getTpId())
            .append("tpOrderid", getTpOrderid())
            .append("tpNum", getTpNum())
            .append("tpStartdate", getTpStartdate())
            .append("tpTime", getTpTime())
            .append("tpCost", getTpCost())
            .append("tpActualcost", getTpActualcost())
            .append("tpDate", getTpDate())
            .append("pId", getpId())
            .toString();
    }
}
